package vs_a1;

import java.rmi.Remote;
import java.rmi.RemoteException;
/**
 * Given Interface for VS exercise 1.
 */
public interface MessageServerInterface extends Remote {
	/**
	 * Get the next Message for client with the clientID.
	 * @param clientID containing the ID of the client.
	 * @return String containing the Message.
	 * @throws RemoteException thrown if something goes wrong or if there are "no more messages".
	 */
	public String getMessage(String clientID) throws RemoteException;

	/**
	 * Send a Message from a client with the clientID to the Server.
	 * @param clientID containing the ID of the client.
	 * @param message the Message which should be send over the Server
	 * @throws RemoteException thrown if something goes wrong.
	 */
	public void dropMessage(String clientID, String message)
			throws RemoteException;

}

